import request from '@/utils/request'

// 支付
export function getPay(id) {
  return request({
    url: '/app/order/apy?wxUserId='+id,
    method: 'get'
  })
}

// 支付
export function getPayment(orderInfo) {
  return new Promise((resolve, reject) => {
	  uni.requestPayment({provider: '支付宝支付',orderInfo:orderInfo,}).then(res =>{
		  resolve(res)
	  }).catch(error => {
          reject(error)
      })
});
}